import request from '@/utils/request'

// 查询招标信息列表
export function listHgtcrawlers(query) {
  return request({
    url: '/system/hgtcrawlers/list',
    method: 'get',
    params: query
  })
}
// 查询招标信息列表
export function tjsum(query) {
  return request({
    url: '/crawlers/tjsum',
    method: 'post',
    params: query
  })
}

// 查询招标信息详细
export function getHgtcrawlers(id) {
  return request({
    url: '/system/hgtcrawlers/' + id,
    method: 'get'
  })
}

// 新增招标信息
export function addHgtcrawlers(data) {
  return request({
    url: '/system/hgtcrawlers',
    method: 'post',
    data: data
  })
}

// 修改招标信息
export function updateHgtcrawlers(data) {
  return request({
    url: '/system/hgtcrawlers',
    method: 'put',
    data: data
  })
}

// 删除招标信息
export function delHgtcrawlers(id) {
  return request({
    url: '/system/hgtcrawlers/' + id,
    method: 'delete'
  })
}
